#!/usr/bin/env python

import datetime
import sys
import time

class LogFile:
    def __init__( self, file ):
        self.file = open( file, 'w' )
        return
    
    def __del__( self ):
        self.file.close()
        return
    
    def write( self, message ):
        self.file.write( time.asctime() + ' - ' + message + '\n' )
        return